package com.hunnyovo.springframework.beans.factory;

import com.hunnyovo.springframework.beans.BeansException;

/**
 * bean工厂接口
 *
 * @author Create By Cb
 * @date 2022/10/26 18:36
 **/
public interface BeanFactory {

    /**
     * 获取bean
     *
     * @param beanName:
     * @return {@link Object}
     * @author Create By Cb
     * @date 2022/11/18 16:20
     */
    Object getBean(String beanName) throws BeansException;

    /**
     * 获取bean
     *
     * @param beanName:
     * @param args:
     * @return {@link Object}
     * @author Create By Cb
     * @date 2022/11/18 16:52
     */
    Object getBean(String beanName, Object... args) throws BeansException;

}
